package com.zgjkhis.modules.system.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.domain.PageResult;
import com.zgjkhis.modules.system.domain.Schedule;
import com.zgjkhis.modules.system.service.dto.ScheduleDto;
import com.zgjkhis.modules.system.service.dto.ScheduleQueryCriteria;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
* @date 2020-05-14
*/
public interface ScheduleService extends BaseService<Schedule>{

/**
    * 查询数据分页
    * @param criteria 条件
    * @param pageable 分页参数
    * @return Map<String,Object>
    */
    PageResult<ScheduleDto> queryAll(ScheduleQueryCriteria criteria, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param criteria 条件参数
    * @return List<DictDto>
    */
    List<Schedule> queryAll(ScheduleQueryCriteria criteria);


}
